<?php 
    $url = new Url();  
    $link_url = Yii::app()->params['urlRs']."/upload/upload_library.php?forder_up=exercise";  
?> 

<link href="<?php echo Yii::app()->params['urlRs']; ?>/js/swfupload/css/default.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript" src="<?php echo Yii::app()->params['urlRs']; ?>/js/swfupload/swfupload.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->params['urlRs']; ?>/js/swfupload/js/handlers.js"></script>

<div class="clearfix" id="content" style="width: 606px;">

    <div style="" class="contentWrap clearfix not-submitted">
        <div class="asubs" id="middle-column3">

            <h3 class="page-title"><img src="<?php echo Yii::app()->params['urlRs'];?>/images/assignment.png"><span>Nộp bài tập</span></h3>

            <div id="assignment-container">
                <div class="EventDisplay posts AssignmentEventDisplay">
                    <div class="thumb">
                        <img src="<?php echo Yii::app()->params['urlRs'];?>/images/23_t.jpg"></div>
                    <div class="body">
                        <div class="receivers"><?php echo $data_user['user_fullname'] ?> gửi tới <span style="color:#336699"><?php echo $data_group['group_name']; ?></span></div>
                        <div class="point"></div>
                        <div class="event">
                            <div class="title"><?php echo $assignment_data['assignment_title']; ?></div>
                            <!--<div class="date">Due: Oct 19, 2012</div><div class="ass-desc">test</div>-->
                            <div class="attachments small">                                
                                <div class="resources ItemBox file exe" id="resource_item_40779987">                                    
                                    <div class="thumb"><a target="_blank"></a><img src="<?php echo Yii::app()->params['urlRs'];?>/images/txt.png"></div>
                                    <div class="resource-info" id="resource_info">                                        
                                        <a href="<?php echo Yii::app()->params['urlRs'];?>/upload_data<?php echo $assignment_data['assignment_link']; ?>" target="_blank" class="title"><?php echo $assignment_data['assignment_file_name']; ?></a>
                                        <div class="ResourceInfo">                                        
                                            <a class="download .exe" href="<?php echo Yii::app()->params['urlRs'];?>/upload_data<?php echo $assignment_data['assignment_link']; ?>" target="_blank">Download</a>                                            
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>                    
                </div>
            </div>
            <div style="display:block" id="uploader">
                <img src="<?php echo Yii::app()->params['urlRs'];?>/images/default_avatar_t.png" class="thumb">                
                <div class="PostBox basic">
                    <div class="entry-boxes">
                        <div class="post_box TextPostBox">
                            <textarea tabindex="42" style="overflow: hidden; height: 45px;" id="exercise_description"></textarea>                            

                            <div>
                                <input type="text" id="txtFileName" disabled="disabled" style="background-color: #FFFFFF;" size="55" value="" />                            
                                <span id="spanButtonPlaceholder"></span>
                            </div>                        
                            <div class="flash" id="divFileProgressContainer"></div>

                            <div style="position: absolute; left: -999em; top: 0px; word-wrap: break-word; border-left: 1px solid rgb(170, 204, 229); border-color: rgb(170, 204, 229); border-style: solid; border-width: 1px; font-weight: 400; width: 525px; font-family: 'Helvetica Neue','Nimbus Sans L',Arial,Helvetica,sans-serif; line-height: 15px; font-size: 12px; padding: 3px;" class="elastic-div">type your response here...&nbsp;</div>
                        </div>
                    </div>                    
                    <input type="button" class="send" value="Nộp bài tập" onclick="send_exercise(<?php echo $data_group['group_id']; ?>,<?php echo $data_user['user_id']; ?>,<?php echo $assignment_data['assignment_id']; ?>)">
                </div>
            </div>        

        </div>
    </div>    

</div>

<?php include "turn_in.js.php"; ?>
